home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
El Mac 9
/
El Mac 9.iso
/
Shareware
/
Applications
/
MathPad 2.4
/
XFuns
/
imageRGB
/
imageRGB.rsrc
/
TEXT_128_imageRGB().txt
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-03-29
|
389 b
|
14 lines
-- imageRGB(rgbarray)
-- Allows direct specification of the red, green and blue color components of each image element. The intensity of each component can range from 0.0 to 1.0
rgbarray[ix,iy] = {red(ix),green(iy),blue(ix)} dim[nrows,ncols]
n=15; nrows=n; ncols=n
red(i) = (i-1)/(n-1)
green(i) = (i-1)/(n-1)
blue(i) = (n-i)/(n-1)
imageRGB(rgbarray):
Xmin=0; Xmax=n; Ymin=0; Ymax=n